﻿<?php defined('_JEXEC') or die('Restricted access'); ?>

<form action="index.php" method="post" name="adminForm" id="adminForm">
<div class="col100">
	<fieldset class="adminform">
		<legend><?php echo JText::_( 'Details' ); ?></legend>

		<table class="admintable">
		<tr>
			<td width="100" align="right" class="key">
				<label for="manganh">
					<?php echo JText::_( 'Mã Ngành' );?>
				</label>
			</td>
			<td>
				<select name="manganh" id="manganh">
					<?php
					$k = 0; 
					for ($i=0, $n=count( $this->allnganh ); $i < $n; $i++) 
					{ 					
							$rown =& $this->allnganh[$i];
							if($rown->manganh==$this->nganh->manganh)
								echo "<option value='".$rown->manganh."' selected='selected'>".$rown->tennganh."</option>";
							else
								echo "<option value='".$rown->manganh."' >".$rown->tennganh."</option>";
					}		
					?>
				</select>
			</td>
		</tr>
		<tr>
			<td width="100" align="right" class="key">
				<label for="tenphannganh">
					<?php echo JText::_( 'Tên phân ngành' );?>
				</label>
			</td>
			<td>
				<input class="text_area" type="text" name="tenphannganh" id="tenphannganh" size="32" maxlength="250" value="<?php echo $this->nganh->tenphannganh;?>" />
			</td>
		</tr>
	</table>
	</fieldset>
</div>
<div class="clr"></div>

<input type="hidden" name="option" value="com_phannganh" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="text" value="<?php echo $this->text; ?>" />
<input type="hidden" name="controller" value="phannganh" />
</form>
